package com.lq.ecoldchain.ui.mine.user.phone

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/3 0003  17:19
*function by lq
*/
val updatePhoneKodeinModule = Kodein.Module("Update_Phone_Kodein_Module"){
    bind<UpdatePhoneViewModel>() with scoped(AndroidLifecycleScope).singleton {
        UpdatePhoneViewModel()
    }

    bind<UpdatePhoneDelegate>() with scoped(AndroidLifecycleScope).singleton {
        UpdatePhoneDelegate(instance())
    }
}